<?php if($queryResult->FaxQuery2Result->ResultCode==0){?>
<div class="fax_header">
<h3>Total de transaction: <?=$queryResult->FaxQuery2Result->TotalTransactionsNum?></h3>
<h3>L'état du compte: <?php $statsCount = count($queryResult->FaxQuery2Result->Stats->StatusCount);
				if($statsCount = 0){
					echo 'No transactions fit query';
				}elseif($statsCount = 1){?><img src="<?=base_url()?>resources/imgs/block_yes.png" height="15" alt="ok" title="ok"><?php }?> | <a style="text-decoration:underline; color:#333;" href="<?=site_url('admin990/fax/proprety')?>">Préférence</a></h3>
<div>
<hr>
<div class="fax">
<table width="100%">
  <tr>
    <th>Trans ID</th>
    <th>SubmitTime</th>
    <th>PostponeTime</th>
    <th>CompletionTime</th>
    <th>UserID</th>
    <th>Destination</th>
    <th>PagesSent</th>
    <th>Status</th>
    <th>Duration</th>
    <th>PagesSubmitted</th>
    <th>Priority</th>
    <th>CostPerUnit</th>
    <th>PageSize</th>
    <th>Resolution</th>
    <th>Quality</th>
    <th>DeleteAfterUsage</th>
  </tr>
  <?php foreach ($queryResult->FaxQuery2Result->FaxItems->FaxItemEx2 as $f):?>
  <tr>
    <td><?=$f->TransactionID?></td>
    <td><?=$f->SubmitTime?></td>
    <td><?=$f->PostponeTime?></td>
    <td><?=$f->CompletionTime?></td>
    <td><?=$f->UserID?></td>
    <td><?=$f->RemoteCSID?></td>
    <td><?=$f->PagesSent?></td>
    <td><?php if($f->Status ==0 ){?><img src="<?=base_url()?>resources/imgs/block_yes.png" height="15" alt="ok" title="ok"><?php }else{?><?=$f->Status?><?php }?></td>
    <td><?=$f->Duration?> s</td>
    <td><?=$f->PagesSubmitted?></td>
    <td><?=$f->Priority?></td>
    <td><?=$f->CostPerUnit?> €</td>
    <td><?=$f->PageSize?></td>
    <td><?=$f->PageResolution?></td>
    <td><?=$f->RenderingQuality?></td>
    <td><?=$f->DeleteAfterUsage?></td>
  </tr>
  <?php endforeach;?>
</table>
</div>
<?php }else{?>
<h3>Problem retrieving status, error <a href="http://www.interfax.net/en/dev/webservice/reference/web-service-return-codes"><?=$queryResult->FaxQuery2Result->ResultCode?></a> | <a style="text-decoration:underline; color:#333;" href="<?=site_url('admin990/fax/proprety')?>">Préférence</a></h3>
<?php }?>
<?php // print_r ($queryResult->FaxQuery2Result->FaxItems->FaxItemEx2) ;?>

</body>
</html>